﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using WinLiga;

namespace WinLiga
{
    public partial class Competiciones : PhoneApplicationPage
    {
        List<Competicion> listaCompeticiones;
        public Competiciones()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, RoutedEventArgs e)
        {
            //aquí se llamaría al metodo de búsqueda
            listaCompeticiones = new List<Competicion>();
            listaCompeticiones.Add(new Competicion());
            listBox1.ItemsSource = listaCompeticiones;
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            if (!String.IsNullOrWhiteSpace("/Interfaz/Inicio.xaml"))
            {
                this.NavigationService.GoBack();
            }
        }
        private void Competicion_Click(object sender, RoutedEventArgs e)
        {
            string ID = "1";      
            this.NavigationService.Navigate(new Uri("/Interfaz/pComp.xaml?ID="+ID, UriKind.Relative));
        }
    }
}